package com.hzit.user;


import com.hzit.common.constant.HZitServiceNameConstants;
import com.hzit.manager.api.factory.RemoteContentFallback;
import com.hzit.user.api.factory.RemoteUserFallback;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value= HZitServiceNameConstants.USER_SERVICE,fallbackFactory = RemoteUserFallback.class)
public interface RemoteUserService {
	//6. 保存用户
	@PostMapping("/user/save2")
	AjaxResult saveUser();

	@GetMapping("/user/findAll")
	AjaxResult findAll();
}
